package com.ruoyi.relfile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.relfile.mapper.RelTypeFileMapper;
import com.ruoyi.relfile.domain.RelTypeFile;
import com.ruoyi.relfile.service.IRelTypeFileService;

/**
 * 类别文件关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
@Service
public class RelTypeFileServiceImpl implements IRelTypeFileService 
{
    @Autowired
    private RelTypeFileMapper relTypeFileMapper;

    /**
     * 查询类别文件关联
     * 
     * @param id 类别文件关联ID
     * @return 类别文件关联
     */
    @Override
    public RelTypeFile selectRelTypeFileById(Long id)
    {
        return relTypeFileMapper.selectRelTypeFileById(id);
    }

    /**
     * 查询类别文件关联列表
     * 
     * @param relTypeFile 类别文件关联
     * @return 类别文件关联
     */
    @Override
    public List<RelTypeFile> selectRelTypeFileList(RelTypeFile relTypeFile)
    {
        return relTypeFileMapper.selectRelTypeFileList(relTypeFile);
    }

    /**
     * 新增类别文件关联
     * 
     * @param relTypeFile 类别文件关联
     * @return 结果
     */
    @Override
    public int insertRelTypeFile(RelTypeFile relTypeFile)
    {
        return relTypeFileMapper.insertRelTypeFile(relTypeFile);
    }

    /**
     * 修改类别文件关联
     * 
     * @param relTypeFile 类别文件关联
     * @return 结果
     */
    @Override
    public int updateRelTypeFile(RelTypeFile relTypeFile)
    {
        return relTypeFileMapper.updateRelTypeFile(relTypeFile);
    }

    /**
     * 批量删除类别文件关联
     * 
     * @param ids 需要删除的类别文件关联ID
     * @return 结果
     */
    @Override
    public int deleteRelTypeFileByIds(Long[] ids)
    {
        return relTypeFileMapper.deleteRelTypeFileByIds(ids);
    }

    /**
     * 删除类别文件关联信息
     * 
     * @param id 类别文件关联ID
     * @return 结果
     */
    @Override
    public int deleteRelTypeFileById(Long id)
    {
        return relTypeFileMapper.deleteRelTypeFileById(id);
    }
}
